package cn.com.oidreams.aliyun.robot.enums;

import cn.com.oidreams.common.enums.ICommonEnum;
import lombok.Getter;

/***
 ** @category 请用一句话描述这个类的用途
 ** @author qing.yunhui
 ** @email: qingyh@glodon.com
 ** @createTime: 2022-03-17 16:03
 **/
@Getter
public enum TransformEnum implements ICommonEnum {
    CODE_TO_VALUE("getValueByCode", "code到value的转换"),
    TYPE_TO_VALUE("getValueByType","type到value的转换");
    private final String code;
    private final String value;
    TransformEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }
    @Override
    public Integer getKey() { return Integer.parseInt(code); }
}
